/**
 * 工程名: 	MyExplorer
 * 文件名: 	MyFile.java
 * 创建人:  	guo.tianxiang
 * 创建时间: 	2014-2-23 下午7:14:58
 * 版权所有：	Copyright (c) 2014 苏州科大恒星信息技术有限公司  
 * 文件描述: 描述该文件的作用
 * -----------------------------变更记录 ----------------------------- 
 * 日期        		变更人      		版本号  		变更描述  
 * ------------------------------------------------------------------  
 * 2014-2-23     guo.tianxiang   	1.0       	first created  
 */
package com.tianxiang.model;

import org.apache.struts2.json.annotations.JSON;

/**
 * 
 * @since MyExplorer 0.1
 * @version 1.0 2014-2-23
 * @author guo.tianxiang
 */
public class MyFile {
		private int fid;//文件编号
		private String name;	//记录文件名

		private String path;	//记录文件路径
		private String  lastModitied;	//文件最后修改时间
		private long delTime;    //文件删除时间
		
		private long keepTime=864000; //文件删除的时间默认10天即864000秒
		private String remainTime;//文件剩余时间
		private boolean isFile;	//文件类型，用于表示是文件还是文件夹
		private String fileType;	//文件类型,用于保存文件类型，根据后缀名或文件类型
		private String fileSize;	//保存文件大小，自动匹配单位
		private String fileCode;  //文件SHA-1码
		private int count=1;//文件拥有者数目
		
		
		public int getCount() {
			return count;
		}
		public void setCount(int count) {
			this.count = count;
		}
		public String getFileCode() {
			return fileCode;
		}
		public void setFileCode(String fileCode) {
			this.fileCode = fileCode;
		}
		public String getRemainTime() {
			return remainTime;
		}
		public void setRemainTime(String remainTime) {
			this.remainTime = remainTime;
		}
		public long getDelTime() {
			return delTime;
		}
		public void setDelTime(long delTime) {
			this.delTime = delTime;
		}
		public long getKeepTime() {
			return keepTime;
		}
		public void setKeepTime(long keepTime) {
			this.keepTime = keepTime;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getPath() {
			return path;
		}
		public void setPath(String path) {
			this.path = path;
		}
		public String getLastModitied() {
			return lastModitied;
		}
		public void setLastModitied(String lastModitied) {
			this.lastModitied = lastModitied;
		}
	
		public String getFileSize() {
			return fileSize;
		}
		public void setFileSize(String fileSize) {
			this.fileSize = fileSize;
		}
		public String getFileType() {
			return fileType;
		}
		public void setFileType(String fileType) {
			this.fileType = fileType;
		}
		public boolean isFile() {
			return isFile;
		}
		
		public int getFid() {
			return fid;
		}
		public void setFid(int fid) {
			this.fid = fid;
		}
		public void setFile(boolean isFile) {
			this.isFile = isFile;
		}
		@Override
		public String toString() {
			return "MyFile [id=" + fid + ", name=" + name + ", path=" + path
					+ ", lastModitied=" + lastModitied + ", delTime=" + delTime
					+ ", keepTime=" + keepTime + ", remainTime=" + remainTime
					+ ", isFile=" + isFile + ", fileType=" + fileType
					+ ", fileSize=" + fileSize + ", fileCode=" + fileCode
					+ ", count=" + count + "]";
		}
		
		
		
}
